import React from 'react';
import "./style.less";
import Baselist from 'components/Baselist';
import Datatable from 'components/Datatable';
import API, {GET_ADMIN_LIST,GET_ADMIN_PRIVS} from 'lib/api';

export default class Admin extends React.Component {
    constructor(props) {
        super(props);

    }


    state = {
        //后台模型
        model: 'admin',
        //列表数据
        list: GET_ADMIN_LIST,
        //权限
        privs: GET_ADMIN_PRIVS,

        crumb:[
            {
                'icon': 'user',
                'href': '/',
                'title': '首页',
            },
            {
                'icon': 'user',
                'href': '/admin',
                'title': '管理员列表'
            }
        ]
    }

    componentDidMount() {


    }


    render() {
        return (
            <Baselist>
                {/* table */}
                <Datatable  {...this.state} />
            </Baselist>
        )
    }
}